<?php

namespace App\Http\Controllers\Home;

use Illuminate\Http\Request;
use DB;
use App\Http\Requests;
use App\Http\Controllers\Controller;

class HomeController extends Controller
{
    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function index(Request $request)
    {

        //解析模板 分配数据
        return view('Home.home.index');

    }
    public function getXiangqing(Request $request)
    {
        $activitys = DB::table('activity')->get();
       return view('Home.activity.xiangqing',['activitys'=>$activitys]);

    }


}
